package com.zhihuishu.treenity.dto;

import java.io.Serializable;

/**
 * @author JinXing
 * @date 2016/12/27 13:59
 */

@SuppressWarnings("serial")
public class ImageDto implements Serializable{
	
	    private String url;//图片的网络地址
	    private String srcPath;//裁剪前 本地图片地址
	    private String subPath;//裁剪后 本地图片地址
	    private Integer leftX;//裁剪区域左上角的 X轴
	    private Integer leftY;//裁剪区域左上角的 Y轴
	    private Integer rightX;//裁剪区域右下角的 X轴
	    private Integer rightY;//裁剪区域右下角的 Y轴
	    private Integer realWidth;//原图宽度
	    private Integer realHeight;//原图高度
	    private Integer width;//裁剪区域的宽度
	    private Integer height;//裁剪区域的高度
	    private Integer cutType;//裁剪类型  （1.原图裁剪  2.指定的宽高比例裁剪）

	    public String getUrl() {
	        return url;
	    }

	    public void setUrl(String url) {
	        this.url = url;
	    }

	    public String getSrcPath() {
	        return srcPath;
	    }

	    public void setSrcPath(String srcPath) {
	        this.srcPath = srcPath;
	    }

	    public String getSubPath() {
	        return subPath;
	    }

	    public void setSubPath(String subPath) {
	        this.subPath = subPath;
	    }

	    public Integer getLeftX() {
	        return leftX;
	    }

	    public void setLeftX(Integer leftX) {
	        this.leftX = leftX;
	    }

	    public Integer getLeftY() {
	        return leftY;
	    }

	    public void setLeftY(Integer leftY) {
	        this.leftY = leftY;
	    }

	    public Integer getRightX() {
	        return rightX;
	    }

	    public void setRightX(Integer rightX) {
	        this.rightX = rightX;
	    }

	    public Integer getRightY() {
	        return rightY;
	    }

	    public void setRightY(Integer rightY) {
	        this.rightY = rightY;
	    }

	    public Integer getWidth() {
	        return width;
	    }

	    public void setWidth(Integer width) {
	        this.width = width;
	    }

	    public Integer getHeight() {
	        return height;
	    }

	    public void setHeight(Integer height) {
	        this.height = height;
	    }

	    public Integer getRealWidth() {
	        return realWidth;
	    }

	    public void setRealWidth(Integer realWidth) {
	        this.realWidth = realWidth;
	    }

	    public Integer getRealHeight() {
	        return realHeight;
	    }

	    public void setRealHeight(Integer realHeight) {
	        this.realHeight = realHeight;
	    }
	    	    
		public Integer getCutType() {
			return cutType;
		}

		public void setCutType(Integer cutType) {
			this.cutType = cutType;
		}

		public ImageDto(String url, Integer leftX, Integer leftY, Integer width, Integer height) {
			super();
			this.url = url;
			this.leftX = leftX;
			this.leftY = leftY;
			this.width = width;
			this.height = height;
		}

		public ImageDto(String url, String srcPath, String subPath, Integer leftX, Integer leftY, Integer rightX, Integer rightY, Integer realWidth, Integer realHeight, Integer width, Integer height) {
	        this.url = url;
	        this.srcPath = srcPath;
	        this.subPath = subPath;
	        this.leftX = leftX;
	        this.leftY = leftY;
	        this.rightX = rightX;
	        this.rightY = rightY;
	        this.realWidth = realWidth;
	        this.realHeight = realHeight;
	        this.width = width;
	        this.height = height;
	    }
	    

		public ImageDto() {

	    }

		@Override
		public String toString() {
			return "ImageDto [url=" + url + ", srcPath=" + srcPath + ", subPath=" + subPath + ", leftX=" + leftX
					+ ", leftY=" + leftY + ", rightX=" + rightX + ", rightY=" + rightY + ", realWidth=" + realWidth
					+ ", realHeight=" + realHeight + ", width=" + width + ", height=" + height + ", cutType=" + cutType
					+ "]";
		}
		
	}


